#!/bin/bash
# create_cuda.sh

# 1) Create the conda environment from the YAML file
echo "Creating conda environment from debate_cuda.yml..."
conda env create -f debate_cuda.yml

# 2) Activate the environment
echo "Activating the environment..."
# Using 'conda activate' in a script requires sourcing conda first
source "$(conda info --base)/etc/profile.d/conda.sh"
conda activate debate_cuda

# 3) Install flash-attn with no-build-isolation
echo "Installing flash-attn with --no-build-isolation..."
pip install flash-attn --no-build-isolation

echo "Environment setup complete!"